package com.sbwebsocket.core.service;

import java.util.List;

/**
 * @Auther: GSJ
 * @Date: 2022/3/4 
 * @Description:
 * @version: 1.0
 */
public interface TopicMessageManager {

    /**
     * 完成订阅
     * @param clientkeys
     * @param topic
     * @return
     */
    boolean subscribe(List<String> clientkeys, String topic);

    boolean subscribe(String clientkey,String topic);

    /**
     * 取消订阅
     * @param clientkey
     * @param topic
     * @return
     */
    boolean unsubscribe(String clientkey,String topic);
    boolean unsubscribe(List<String> clientkeys,String topic);
}
